package com.wangyadong.hobby.admin.servcie;

import com.wangyadong.hobby.common.question.Question;

import java.util.List;
import java.util.Map;

public interface IQuestionService {

    public int saveOrUpdateQuestion(Question question) throws Exception;

    public int deleteQuestion(Long id);

    public Question getQuestionDetail(Long id) throws InstantiationException, IllegalAccessException;

    public List<Question> queryQuestionListByPage(int pageNum, int pageSize,
                                                  Map<String, Object> map) throws InstantiationException, IllegalAccessException;
}
